#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    //ui->pushButton->setStyleSheet("QPushButton{color:red;}");   只针对pushButton
    this->setStyleSheet("QPushButton{color:red;}");     //也针对子控件的QPushButton生效

}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_clicked()
{

}
